/**
 * Created by zhulingxiao on 2017/6/7.
 */
export const MODAL_LOADING = 'MODAL_LOADING';
export const MODAL_SUCCESS = 'MODAL_SUCCESS';
export const MODAL_OPEN = 'MODAL_OPEN';
export const MODAL_CLOSE = 'MODAL_CLOSE';

export const openModal = (title, parentid, link, icon, qx, index, sysid) => {

  return { type: MODAL_OPEN, title: title, parentid:parentid, link:link, icon:icon, qx:qx, index:index, sysid:sysid }

}

export const modalLoading = () => {

  return { type: MODAL_LOADING }

}

export const closeModal = () => {

  return { type: MODAL_CLOSE }

}

export const modalSuccess = () => {

  return { type: MODAL_SUCCESS }

}
